home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Answers 2002 January
/
PC Answers January 2002.7z
/
PC Answers January 2002.bin
/
graphics
/
freepixl
/
_SETUP.1
/
Shadow.pxl
< prev
next >
Wrap
Text File
|
2000-12-23
|
3KB
|
125 lines
{ Filename : user1_12.pxl
Purpose : Skeleton file for PiXCL applications
Date : 13feb 98
Author: S.Dibbs, VYSOR Integration Inc
History:
Version : 1.0 RELEASE
Update :
Date :
--------------------------------------------------------------------------}
Initialize: {only one instance allowed}
UseCoordinates(PIXEL)
Title$ = "Shadow Text commands for PiXCL 4.40"
WinExist(Title$,Res)
If Res = 0 Then Goto One_Instance
Beep
WinSetActive(Title$,Res)
WinShow(Title$,RESTORE,Res)
End
One_Instance:
UseCaption(Title$) {change the title}
WinLocate(Title$,224,118,758,448,Res)
UseBackground(TRANSPARENT,255,255,255)
WinShow(Title$,NOTOPMOST,Res)
DrawBackGround
DirGet(SourceDir$) {used later for library function calls}
{DragAcceptFile(ENABLE,AcceptFile)}
{AutoProgressBar(DISABLE)}
InfoMenu(REMOVE)
WaitInput(100)
SetMenu("&File",IGNORE,
"&New",CreatingFile,
"&Open",OpeningFile,
"&Save",SavingFile,
SEPARATOR,
"E&xit!",Terminate,
ENDPOPUP,
"&Information",IGNORE,
"&Concept",Concept,
"&Help",ShowAppHelp,
SEPARATOR,
"About",About,
ENDPOPUP)
{Toolbar( RAISED, PXL_SMALL,
NULL, NULL, SEPARATOR, "", Wait_for_Input,
PXL_NEW, ENABLED, STD, "FileNew", CreatingFile,
PXL_OPEN, ENABLED, STD, "FileOpen", OpeningFile,
PXL_SAVE, ENABLED, STD, "FileSave", SavingFile,
NULL, NULL, SEPARATOR, "", Wait_for_Input,
PXL_SHOHLP, ENABLED, STD,"Show Help",ShowAppHelp)}
StatusWindow(ENABLE,BOTTOM,2,200,-1,0,0)
DrawStatusWinText(0,"Ready")
Wait_for_Input:
WaitInput()
Terminate:
End
Concept:
MessageBox(OK,1,INFORMATION,
"This is a skeleton of a PiXCL application. You could briefly
describe your application's function here, or provide some
basic help information.",
"PiXCL Skeleton Concept",Res)
Goto Wait_for_Input
ShowAppHelp:
{An application Help file usually has the same name as the application.}
Winhelp("shadow.hlp",CONTENTS,"")
Goto Wait_for_Input
About:
AboutUser("Application Title goes here",
"Two lines of text goes here e.g. Application function.",
"Four Lines of additional information goes here, perhaps contact information and Web addresses")
Goto Wait_for_Input
CreatingFile:
{TODO: add file handling here}
DrawBackground
UseFont("Arial",11,23,NOBOLD,NOITALIC,NOUNDERLINE,255,0,0)
DrawText(10,10,"This is a test of DrawText")
DrawShadowText(10,40,"This is a test of DrawText",0,0,0,-1)
DrawShadowTextExt(10,70,400,270,"This is more text in a RECT region, and should wrap around.",LEFT,0,0,0,1)
Goto Wait_for_Input
OpeningFile:
{TODO: add file handling here}
DrawBackground
AngleX10 = 0
Spacing = 4
For i=0 To 360 By 10
SetFontEscapement(AngleX10)
SetTextSpacing(Spacing)
UseFont("Arial",7,15,BOLD,ITALIC,NOUNDERLINE,255,0,0)
DrawShadowText(250,250," This is a test of DrawText",0,0,0,1)
AngleX10 = i * 10
Negate(AngleX10)
Next
Goto Wait_for_Input
SavingFile:
{TODO: add file handling here}
Goto Wait_for_Input
AcceptFile:
GetDragList(FileList$)
{TODO: add file list handling here, or delete this whole label handler}
Goto Wait_for_Input